<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div>
    <from action="@{/object}" th:object="${stu}" method="post">
<!--      双向绑定，即设置标签的name为name-->
      <input type="text" th:field="*{name}"/><br/>
      <input type="text" th:field="*{age}"/><br/>
      <input type="submit" value="提交">
    </from>
  </div>
</body>
</html>